﻿<CodeSnippetTabbed DocLink="https://docs.devexpress.com/Blazor/DevExpress.Blazor.DxChartCommonSeries-4">
    <CodeSnippetTabPage Text="Razor">@(@"<DxChart Data=""@chartData""
         LabelOverlap=""ChartLabelOverlap.Hide""
         CssClass=""mw-1100"">
    <DxChartTitle Text=""Sales amount"" />
    <DxChartCommonSeries
            AggregationMethod=""Enumerable.Sum""
            NameField=""@((SaleInfo s) => s.Date.Year)""
            ArgumentField=""@((SaleInfo s) => s.City)""
            ValueField=""@((SaleInfo s) => s.Amount)"">
        <SeriesTemplate Context=""settings"">
            @if(settings.GroupKey == 2019) {
                <DxChartLineSeries Name=""Last year"" Settings=""@settings"">
                </DxChartLineSeries>
            } else {
                <DxChartBarSeries Settings=""@settings"">
                    <DxChartSeriesLabel Visible=""true""></DxChartSeriesLabel>
                </DxChartBarSeries>
            }
        </SeriesTemplate>
    </DxChartCommonSeries>
</DxChart>")</CodeSnippetTabPage>
</CodeSnippetTabbed>
